package cn.com.dcsgo.service.impl;

import cn.com.dcsgo.domain.dto.AfterSaleDTO;
import cn.com.dcsgo.domain.vo.AfterSaleVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.com.dcsgo.domain.po.AfterSale;
import cn.com.dcsgo.service.AfterSaleService;
import cn.com.dcsgo.mapper.AfterSaleMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 针对表【after_sale_service(售后服务表)】的数据库操作Service实现
 *
 * @author Dcsgo
 * @since 13/5/2025 上午 10:54
 */
@Service
public class AfterSaleServiceImpl extends ServiceImpl<AfterSaleMapper, AfterSale>
        implements AfterSaleService {

    @Override
    public IPage<AfterSaleVO> getPage(Page<AfterSaleVO> pageParam, AfterSaleDTO afterSaleDTO) {
        return baseMapper.selectAfterSaleVOPage(
                pageParam,
                afterSaleDTO.getServiceId(),
                afterSaleDTO.getCustName(),
                afterSaleDTO.getQuestionType(),
                afterSaleDTO.getState(),
                afterSaleDTO.getGrade(),
                afterSaleDTO.getScore()
        );
    }
}




